#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
using namespace std;
string str1, str2;
int main()
{
    int num_1 = 0, num_2 = 0;
    cin >> str1;
    getline(cin, str2);
    int i, j;
    for (i = 0; i < str1.size(); ++i)
    {
        if (str1[i] >= '0' && str1[i] <= '9')
            num_1 = num_1 * 10 + str1[i] - '0';
        else
        {
            cout << "?";
            break;
        }
    }
    if (i == str1.size())
    {
        if (num_1 >= 1 && num_1 <= 1000)
            cout << num_1;
        else
            cout << "?";
    }
    cout << " + ";

    for (j = 0; j < str2.size(); ++j)
    {
        if (str2[j] >= '0' && str2[j] <= '9')
            num_2 = num_2 * 10 + str2[j] - '0';
        else
        {
            cout << "?";
            break;
        }
    }
    if (j == str2.size())
    {
        if (num_2 >= 1 && num_2 <= 1000)
            cout << num_2;
        else
            cout << "?";
    }
    cout << " = ";

    if (i == str1.size() && j == str2.size() && num_1 <= 1000 && num_2 <= 1000 && num_1 >= 1 && num_2 >= 1)
        cout << num_1 + num_2 << endl;
    else
        cout << "?" << endl;
    return 0;
}
